<?php

define('WEBSITE_HOST', 'http://localhost/PetUnion');

//db
define('DATABASE_HOST', 'localhost');
define('DATABASE_USERNAME', 'root');
define('DATABASE_PASSWORD', '123456');
define('DATABASE_NAME', 'petunion');

//path and folder
define('WEBSITE_DOCUMENT_ROOT', "d:/PetUnion/petunion");
define('IMAGES_FOLDER', "/images");
define('IMAGES_PET_FOLDER', WEBSITE_HOST.IMAGES_FOLDER."/pets");
define('IMAGES_OPUS_FOLDER', WEBSITE_HOST.IMAGES_FOLDER."/opus");
define('IMAGES_HAPPYHOME_FOLDER', WEBSITE_HOST.IMAGES_FOLDER."/happyhome");
define('IMAGES_SALE_FOLDER', WEBSITE_HOST.IMAGES_FOLDER."/sale");
define('IMAGES_PET_SAVE_FOLDER', WEBSITE_DOCUMENT_ROOT.IMAGES_FOLDER."/pets");
define('IMAGES_OPUS_SAVE_FOLDER', WEBSITE_DOCUMENT_ROOT.IMAGES_FOLDER."/opus");
define('IMAGES_HAPPYHOME_SAVE_FOLDER', WEBSITE_DOCUMENT_ROOT.IMAGES_FOLDER."/happyhome");
define('IMAGES_SALE_SAVE_FOLDER', WEBSITE_DOCUMENT_ROOT.IMAGES_FOLDER."/sale");
define('FCKEDITOR_BASE_PATH', "../include/lib/fckeditor/");
define('LOG', "/log");
define('NEWSLETTER_LOG_MAIL_ADDRESS_PATH', WEBSITE_DOCUMENT_ROOT.LOG."/newsletter_mail_address");

//DL ssapa.info@yahoo.com.cn
define('ADMIN_MAIL_NAME', 'SSAPA');
define('ADMIN_MAIL_ADDRESS', 'ssapa.info@yahoo.com.cn');
define('DEVELOPER_MAIL_ADDRESS', 'mynamesucks@163.com');
define('MAIL_PAID_DL', ADMIN_MAIL_ADDRESS.', '.DEVELOPER_MAIL_ADDRESS);
define('MAIL_BATCH_INTERVAL', '1800'); //seconds
define('MAIL_UNSUBSCRIBE_ADDRESS', WEBSITE_HOST.'/unsubscribe.php'); //seconds

//constants for pagination
define('PAGICATION_RECORD_COUNT_NEWS', 10);
define('PAGICATION_RECORD_COUNT_PET', 4);
define('PAGICATION_RECORD_COUNT_MAL', 10);
define('PAGICATION_RECORD_COUNT_SEACH_HOSPITAL', 1);
define('PAGICATION_RECORD_COUNT_OPUS', 5);
define('PAGINATION_DELTA', 3);

//constants for value of class or type
define('NEWS_BRANCH', 1);
define('NEWS_PET_PRO', 2);
define('PET_TYPE_DOG', 1);
define('PET_TYPE_CAT', 2);
define('PET_TYPE_OTHER', 3);
define('PET_TYPE_BOTH', 4);
define('MAL_CLASS_HOST_MUST_KNOW', 1);
define('MAL_CLASS_PETS_AND_KIDS', 2);
define('MAL_CLASS_MISTAKEN', 3);
define('PET_SICK_CATDOG', 1);
define('PET_SICK_CAT', 2);
define('PET_SICK_DOG', 3);
define('OPUS_BOOK', 1);
define('OPUS_FILM', 2);
define('OPUS_CAMPUS', 3);
define('MEMBER_SITE_ADMIN', 1);
define('MEMBER_PAID', 2);
define('MEMBER_CONTENT_ADMIN', 3);
define('MEMBER_ORDINARY', 4);
define('MEMBER_VOL', 5);
define('MEMBER_MALE', 1);
define('MEMBER_FEMALE', 2);
define('FREE_FOSTER_YES', 1);
define('FREE_FOSTER_NO', 2);
define('ANNOUNCE_DISPLAY', 1);
define('ANNOUNCE_NOT_DISPLAY', 0);

define('PIC_THUMB_WIDTH', 100);
define('PIC_THUMB_HEIGHT', 100);

$district_arr = array('崇明县', '黄浦区', '卢湾区', '徐汇区', '长宁区', '静安区', '普陀区', '闸北区', '虹口区', '杨浦区',
						'闵行区', '宝山区', '嘉定区', '金山区', '松江区', '青浦区', '南汇区', '奉贤区', '浦东新区');

$profession_arr = array('学生', '技术人员', '工商管理', '教师', '文员', '律师', '会计', '服务业', '公务员', '其它');

$member_status_arr = array(1 => '网上填表成功，处理中', 
						   2 => '已成为普通会员',
						   3 => '已成为志愿者',
						   4 => '内部证实已付费，授予会员卡',
						   5 => '种种原因不再是会员',
						   6 => '已成为管理员');

$typeArray = array (
		'image/png',
		'image/jpeg',
		'image/jpg',
		'image/gif'
	);
$pic_size_limit = 1024; //kb

?>
